const mongoose = require("mongoose")

const UserSchema = new mongoose.Schema({
    mobile: String, //手机号
    pwd: String, //密码
    isAdmin: Boolean //是否是管理员
}, {
    versionKey: false,
    timestamps: {
        createdAt: 'createTime',
        updatedAt: 'updateTime'
    } //自动管理修改时间
})

module.exports = mongoose.model("User", UserSchema);